package com.heartware.sh.blackhole.ui.activity;

import android.view.animation.AccelerateDecelerateInterpolator;

import com.eftimoff.androipathview.PathView;
import com.heartware.sh.blackhole.R;
import com.heartware.sh.blackhole.ui.activity.base.BaseActivity;

/**
 * Created by Administrator on 2017/8/8 0008.
 */

public class EightActivity extends BaseActivity {


    private PathView pathView;

    @Override
    public int getLayoutId() {
        return R.layout.activity_eight;
    }

    @Override
    public void initView() {
        super.initView();

        pathView = (PathView) findViewById(R.id.pathView);

        pathView.getPathAnimator()
                .delay(100)
                .duration(5000)
//                .listenerStart(new AnimationListenerStart())
//                .listenerEnd(new AnimationListenerEnd())
                .interpolator(new AccelerateDecelerateInterpolator())
                .start();

        pathView.setFillAfter(true);

    }
}
